package com.example.cuibo.elementslearning.dummy;

import java.util.TreeMap;

/**
 * Created by cuibo on 2017/11/1.
 */

/*
* treemap集合比较健
* */
public class Demo_TreeMao {
    void xxx(){
        TreeMap<String,String>tm = new TreeMap<>();
        tm.put("b","1");
        tm.put("a","1");
        tm.put("d","1");
        tm.put("e","1");
    }
    void aaa(){
        TreeMap<Person,String>tm = new TreeMap<>();
        tm.put(new Person("12",1),"1");
        tm.put(new Person("12",1),"1");
        tm.put(new Person("12",1),"1");
        tm.put(new Person("12",1),"1");
    }
}


